﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InventoryList.aspx.cs" EnableEventValidation="false"  Inherits="WMS6.Web.Inventory.InventoryList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Inventory/InventoryQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>InventoryList Page</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
  <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
     <script src="../Js/Ajax.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "InventoryQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
        function GetOrderDateAjax(id,type,ownerID,skuID,lot,loc,lpn)
        {
            $('#OrderDiv').modal();
            var Url = "../Common/RelatedOrdersAjax.aspx?type="+type+"&skuID="+escape(skuID)+"&ownerID="+escape(ownerID)+"&lot="+escape(lot)+"&loc="+escape(loc)+"&lpn="+escape(lpn);
            XmlHttp.sendReq(Url, Loadhand);
        }
        
         function Loadhand(obj) 
         {  
            document.getElementById("OrderDiv").innerHTML = obj.responseText;
         }
         
         //关闭
    function DivClose()
    {
      $.modal.close();
    }  
         
    </script>
</head>
<body>
    <form id="F5012" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblReceiptInquiryList" runat="server"   
                            CssClass="label_header"  Text="查询结果" 
                            meta:resourcekey="lblReceiptInquiryList" ></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" 
                            OnClientClick="javascript:returnSearch();return false;"  /></td>               
                    <td><asp:Button ID="btnExport" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnExport%>"
                            onclick="btnExport_Click" /></td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
       <%-- <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>--%>
                
                <div id="div_List">
                <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                
                    <asp:GridView ID="gvInventory" PageSize="20" runat="server" 
                        AutoGenerateColumns="False" onrowdatabound="gvInventory_RowDataBound" 
                        AllowSorting="True"  CssClass="gridview" 
                        meta:resourcekey="gvInventory">
                            <FooterStyle CssClass="GridViewFooterStyle" />
                            <RowStyle CssClass="GridViewRowStyle" />
                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    </asp:GridView>
                </div>
                <div id="div_pager" style="bottom:0px;">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                </div>
                 <div id="OrderDiv" style="position:absolute; display:none; width:500px;border:none 0 black"></div>
          <%-- </ContentTemplate>
        </asp:UpdatePanel>--%>
    </div>
   
    <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnActionID" runat="server" />
    </form>
</body>
</html>
